﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_Area.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_Area
		[Serializable]
	[TableMapping("TU_Area")]
	public class AreaInfo : EntityBase
	{
		#region Constructor
		
		public AreaInfo()
			:this("")
		{}
		public AreaInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private string _areaid;     
		/// <summary>
		/// 区域ID
        /// </summary>		
		[FieldMapping("AreaID" )]		
		[NotNullValidator(MessageTemplate="区域ID不能为空")]
				public string AreaID
        {
            get
            { 
            	return _areaid; 
            }
            set
            { 
            	if(_areaid != value)
            	{            	
            		base.OnPropertyChanged("AreaID", _areaid, value);
            		_areaid = value; 
            	}
            }
        }        
				
		private string _areaname;     
		/// <summary>
		/// 区域名
        /// </summary>		
		[FieldMapping("AreaName" )]		
		[NotNullValidator(MessageTemplate="区域名不能为空")]
				public string AreaName
        {
            get
            { 
            	return _areaname; 
            }
            set
            { 
            	if(_areaname != value)
            	{            	
            		base.OnPropertyChanged("AreaName", _areaname, value);
            		_areaname = value; 
            	}
            }
        }        
				
		private string _areadesc;     
		/// <summary>
		/// 描述
        /// </summary>		
		[FieldMapping("AreaDesc" )]		
				public string AreaDesc
        {
            get
            { 
            	return _areadesc; 
            }
            set
            { 
            	if(_areadesc != value)
            	{            	
            		base.OnPropertyChanged("AreaDesc", _areadesc, value);
            		_areadesc = value; 
            	}
            }
        }        
				
		private string _areaparent;     
		/// <summary>
		/// 父区域
        /// </summary>		
		[FieldMapping("AreaParent" )]		
				public string AreaParent
        {
            get
            { 
            	return _areaparent; 
            }
            set
            { 
            	if(_areaparent != value)
            	{            	
            		base.OnPropertyChanged("AreaParent", _areaparent, value);
            		_areaparent = value; 
            	}
            }
        }        
		   
	}
}